package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.common.annotation.Excel;
import com.futureCloudMOM.core.entity.FBaseEntity;
import com.futureCloudMOM.framework.dict.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_BillType", description = "订单类型")
@TableName(value = "Basic_BillType")
public class BasicBillType extends FBaseEntity implements Serializable {



    @NotBlank(message="[订单类型名称]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("订单类型名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billType")
    @Excel(name = "类型名称")
    private String billType;

    @ApiModelProperty("出入库标识(字典code: f_basic_billtype)")
    @TableField(value = "inOutFlag")
    @Dict(dictCode = "basic_billtype")
    @Excel(name = "出入类型",dictType = "basic_billtype")
    private Long inOutFlag;






}

